/**
 * 
 */
package com.github.phoenics.militia.common.exception;

/**
 * @author Phoenics Chow on 2018年4月10日
 *
 */
public class CommonException extends RuntimeException {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(CommonException.class);
	private String msg;
	private int code = 500;

	public CommonException(String msg) {
		super(msg);
		this.msg = msg;
	}

	public CommonException(String msg, Throwable e) {
		super(msg, e);
		this.msg = msg;
	}

	public CommonException( int code ,String msg) {
		super(msg);
		this.msg = msg;
		this.code = code;
	}

	public CommonException( int code,String msg, Throwable e) {
		super(msg, e);
		this.msg = msg;
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}
}
